package com.wechatpay.v3.vo;

import java.math.BigDecimal;

/**
 * @author liuyi <liuy@pvc123.com>
 * @since 2021/8/5
 */
public class RefundOrderResult extends WechatResult {

    /** 微信支付退款单号 */
    private String refundId;
    /** 商户退款单号 */
    private String outRefundNo;
    /** 微信支付订单号 */
    private String transactionId;
    /** 商户订单号 */
    private String outTradeNo;
    /** 退款渠道 */
    private String channel;
    /** 退款入账账户 */
    private String userReceivedAccount;
    /** 退款状态 */
    private String status;
    /** 金额信息，元 */
    private BigDecimal amount;

    private RefundOrderResult() {
    }

    public RefundOrderResult(String refundId, String outRefundNo, String transactionId, String outTradeNo, String channel, String userReceivedAccount, String status, BigDecimal amount) {
        this.refundId = refundId;
        this.outRefundNo = outRefundNo;
        this.transactionId = transactionId;
        this.outTradeNo = outTradeNo;
        this.channel = channel;
        this.userReceivedAccount = userReceivedAccount;
        this.status = status;
        this.amount = amount;
    }

    public RefundOrderResult(String code, String message) {
        super(code, message);
    }

    public String getRefundId() {
        return refundId;
    }

    public String getOutRefundNo() {
        return outRefundNo;
    }

    public String getTransactionId() {
        return transactionId;
    }

    public String getOutTradeNo() {
        return outTradeNo;
    }

    public String getChannel() {
        return channel;
    }

    public String getUserReceivedAccount() {
        return userReceivedAccount;
    }

    public String getStatus() {
        return status;
    }

    public BigDecimal getAmount() {
        return amount;
    }
}
